#ifndef LIBVZCONN_CONN_TCPSERVER_H_
#define LIBVZCONN_CONN_TCPSERVER_H_

#include "proxy/base/proxybase.h"
#include "proxy/conn/httpconn.h"
#include "proxy/conn/tcpserver.h"
#include <queue>

namespace proxy {

  class LocalHttpProxyServer : public TcpServer{
  public:
    // Only alown one io thread
    explicit LocalHttpProxyServer(
      std::string bind_addr, uint16 bind_port, int thread_num);
    virtual ~LocalHttpProxyServer();

  protected:
    virtual void OnNewConnect(TcpAccpetServer::Ptr accpet_server,
      socket_ptr connect);
  private:
  };

}

#endif // LIBVZCONN_CONN_TCPSERVER_H_